package com.githan.bootsecurity.service;

import com.githan.bootsecurity.entity.SysUser;
import com.githan.bootsecurity.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author https://github.com/Han56
 * @date 2021/4/10 10:59
 */
@Service
public class SysUserService implements SysUserMapper {
    @Autowired
    SysUserMapper sysUserMapper;


    @Override
    public List<SysUser> getAllUserInfo() {
        return sysUserMapper.getAllUserInfo();
    }

    @Override
    public SysUser getOneUserInfo(String username) {
        return sysUserMapper.getOneUserInfo(username);
    }

    @Override
    public List<String> getRoleCodeByusername(String username) {
        return sysUserMapper.getRoleCodeByusername(username);
    }

    @Override
    public List<String> getRoleNameByUsername(String username) {
        return sysUserMapper.getRoleNameByUsername(username);
    }

    @Override
    public String getUserAreaByUsername(String username) {
        return sysUserMapper.getUserAreaByUsername(username);
    }


}
